package com.xilai.cuteBoy.common.takejob;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时任务
 */
@Component("PostalTask")
public class PostalTask {

    private static final Logger _log = LoggerFactory.getLogger(PostalTask.class);

    @Scheduled(cron = "00 26 14 * * ?")
    public void postalTask(){
        _log.info("开始定时任务");
        System.out.println("执行方法逻辑");
        _log.info("任务执行结束");
    }
}
